package com.bblocks.area;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <p>Project: bblocks-pro - AreaVo</p>
 * <p>描述：区域对象-目前主要是采集用</p>
 *
 * @Author Zhao [125043150@qq.com]
 * @Date 2024/3/15 17:06
 * @Version 1.0
 * @since 8
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder(toBuilder = true)
@Schema(description = "区域对象")
public class AreaVo implements Serializable {
    private static final long serialVersionUID = -24343237569575611L;

    @Schema(description="年份")
    private Integer year;;


    @Schema(description="地区编码")
    private String code;

    @Schema(description="区域名称")
    private String name;

    @Schema(description="区域等级：1:省份province,2:市city,3:区县district,4:乡镇/街道street,5:社区/村village")
    private Integer lv;

    @Schema(description="全名-目前和name一致")
    private String fullName;

    @Schema(description="父地区编码")
    private String parentCode;


    @Schema(description="城市编码-电话区号")
    private String cityCode;

    @Schema(description="区县编码-电话区号")
    private String districtCode;

    @Schema(description="城市中心点（即：经纬度坐标，逗号分隔）")
    private String center;


    /**
     * 采集控制用
     */
    @Schema(description="子节点URL",hidden = true)
    private String childUrl;

    @Builder.Default
    @Schema(description="子节点采集状态,0=未采集成功，1=采集完成(只针对直接下级)",hidden = true)
    private Integer childState = 0;
}
